﻿#ifndef PLAN_H
#define PLAN_H
#include "event.h"
#include <QMap>
#include <QObject>
enum PlanType {DAILY,WEEKLY,MONTHLY};
class Plan {
private:
    PlanType type;
    QString name;
    QMap<QString,Event> content;
    bool finish_if_week;
public:
    Plan(QString name,PlanType type);
    Plan() = default;
    void addEvent(Event event);
    int contentCount();
    Event getEventByName(QString name);
    QMap<QString,Event>& getEvents();
    PlanType getType() const;
    void setType(PlanType newType);

    const QString &getName() const;
    void setName(const QString &newName);

    bool getFinish_if_week() const;
    void setFinish_if_week(bool value);

signals:

};

#endif // PLAN_H
